-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I'm finally learning regexps and training with ack. I believe this uses Perl regexp.
I want to match all lines where the first non-blank characters are if (<word> !, with any number of spaces in between the elements.
This is what I came up with:
^[ \t]*if *\(\w+ *!
It only nearly worked…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
asfdfaasdfasfd asfafsdasfasfasfafsd afdadfsdasfasf asfdfdsasdfafsd asdfafdaf afafadfadf afdafdadfadf afdfdafdsasafafd afsdfadfaf afsfaddfsf
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I'm using nginx as a proxy for a django project on mod_wsgi and to serve the static content.
I have two domain names for it: asdf-example.com and asdfexample.com. I want to use rewrites to redirect everything to www.asdf-example.com
They're not quite working the way they should:
asdf-example…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I am accessing a database on another machine from an OS X server. After setting up freetds through macports and creating the freetds.conf file like so:
dump file = /tmp/freetds.log
# nunb our Microsoft server
[winnt]
host = 192.168.0.2
port = 1433
tds version = 8.0
I have…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
What I want is this:
Start: End:
---------------- ----------------
|asdf | | |
---------------- | stuff |
| |
| |
…
>>> More